package org.roger.util;

public class DistanceUtil {
	
	/**
	 * 点（x，y）到原点的距离
	 * @param x
	 * @param y
	 * @return
	 */
	public static double getDistance(int x,int y){
		return Math.sqrt(x*x+y*y);
	}
	
	public static void main(String[] args) {
		System.out.println(DistanceUtil.getDistance(3, 4));
	}

}
